<?php if (isset($_SERVER['HTTP_USER_AGENT']) && !strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<?php echo base_url(); ?>" />

<title><?php echo $_doc['title']; ?></title>

<?php if ($_doc['keywords']) { ?>
<meta name="keywords" content="<?php echo $_doc['keywords']; ?>" />
<?php } ?>
<?php if ($_doc['description']) { ?>
<meta name="description" content="<?php echo $_doc['description']; ?>" />
<?php } ?>

<?php if(isset($_doc['links'])){foreach ($_doc['links'] as $link) { ?>
<link href="<?php echo $link['href']; ?>" sizes ="<?php echo $link['size'] ?>" rel="<?php echo $link['rel']; ?>" />
<?php } }?>

<?php if (isset($_doc['styles'])) {foreach ($_doc['styles'] as $style) { ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php } }?>

<?php if (isset($_doc['scripts'])) {foreach ($_doc['scripts'] as $script) { ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php } }?>




</style>
</head>
<body>
<!-- Header Starts -->
<header>
  <div class="container">
    <div class="row">
      <div class="span6">
        <div class="logo">
          <h1><a href="#">You <span class="color">Zone</span></a></h1>
          <div class="hmeta">分享你我世界的精彩</div>
        </div>
      </div>
      <div class="span6">
        <div class="row">
        <?php if (!empty($arrUser) && is_array($arrUser)) {?>
     		<a><div class="span1 header_user btn btn-success"><?php echo $arrUser['name']?></div></a>
  			<a><div class="span1 hader_loginout btn btn-info">退出</div></a>
  			
       <?php } ?>
        </div>
      </div>
    </div>
  </div>
</header>

<!-- Navigation bar starts -->
          <div class="navbar">
           <div class="navbar-inner">
             <div class="container">
               <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                 <span>Menu</span>
               </a>
               <div class="nav-collapse collapse">
                 <ul class="nav">
                   <li><a href="<?php echo $menu_links['home']?>">首页</a></li>

                   <li><a href="<?php echo $menu_links['sign']?>">签名档</a></li>
                   
                   <!-- Refer Bootstrap navbar doc -->
                   <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">豆瓣系列 <b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="<?php echo $menu_links['douban_live']?>">豆瓣时光</a></li>
                        <li><a href="<?php echo $menu_links['douban_rank']?>">豆瓣排名</a></li>   
                        <li><a href="<?php echo $menu_links['douban_email']?>">群发邮件</a></li>   
                        <li><a href="<?php echo $menu_links['douban_friend']?>">豆瓣朋友</a></li>             
                      </ul>
                   </li>                   
                   <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">帐号操作<b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="<?php echo $menu_links['login']?>">登陆</a></li>
                       <li><a href="<?php echo $menu_links['reg']?>">注册</a></li>

                      </ul>
                   </li>
                       <li class="dropdown">
                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">授权页<b class="caret"></b></a>
                      <ul class="dropdown-menu">
                        <li><a href="<?php echo $menu_links['oauth2_douban']?>">豆瓣</a></li>
                       <li><a href="<?php echo $menu_links['oauth2_tsina']?>">新浪</a></li>

                      </ul>
                   </li>
                   <li><a href="service.html">Service</a></li>
                   <li><a href="aboutus.html">About Us</a></li>

                 </ul>
               </div>
              </div>
           </div>
         </div>

<!-- Navigation bar ends -->

 <script type="text/javascript">  
 $(document).ready(function(){

	$('.hader_loginout').click(function(){
		  $.post("<?php echo $ajaxUrl['loginout']?>", function(data){
		        if(data.status == 1){
		
		        	location.reload();
		        }
		        else
		        {
		        	location.reload();
		        }
		    },'json');

		
	});
});
 </script>